package com.huibao.hulibao.activity;

import android.app.Dialog;
import android.os.Bundle;
import android.view.WindowManager;

import com.huibao.hulibao.R;
import com.huibao.hulibao.fragment.LocationFragmentView;
import com.huibao.hulibao.utils.DialogUtils;

import butterknife.ButterKnife;

public class CheckActivity extends BaseActivity {

    // 网络请求加载对话框
    private Dialog myDialog;

    public void showDialog() {
        myDialog = DialogUtils.createLoadingDialog(CheckActivity.this, getResources().getString(R.string.jiazaizhong));
    }

    public void closeDialog() {
        DialogUtils.closeDialog(myDialog);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_check);
        getWindow().setSoftInputMode( WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
        ButterKnife.bind(this);
        getSupportFragmentManager()    //
                .beginTransaction()
                .add(R.id.fragment_container, new LocationFragmentView())   // 此处的R.id.fragment_container是要盛放fragment的父容器
                .commit();
    }
}
